
package com.tianyang.yukuaifuzs.utils.animations;

import android.animation.Animator;
import android.view.View;

/**
 * Description :位移动画参数类
 */
public class TranslateParams extends BaseAnimationParams{
    public TranslateParams(View view) {
        super(view);
    }


    /** 移动的起始X位置 */
    private float startX;

    /** 最终显示的X位置 */
    private float endX;

    /** 移动的起始Y位置 */
    private float startY;

    /** 最终显示的Y位置 */
    private float endY;


    /** 移动的持续时间 */
    private int duration;

    private  int repet=-1;

    private Animator.AnimatorListener translateAnimationListener;



    public float getStartX() {

        return startX;
    }

    public void setStartX(float startX) {

        this.startX = startX;
    }

    public float getEndX() {

        return endX;
    }

    public void setEndX(float endX) {

        this.endX = endX;
    }

    public float getStartY() {

        return startY;
    }

    public void setStartY(float startY) {

        this.startY = startY;
    }

    public float getEndY() {

        return endY;
    }

    public void setEndY(float endY) {

        this.endY = endY;
    }

    public int getDuration() {

        return duration;
    }

    public void setDuration(int duration) {

        this.duration = duration;
    }

    public int getRepet() {
        return repet;
    }

    public void setRepet(int repet) {
        this.repet = repet;
    }

    public Animator.AnimatorListener getTranslateAnimationListener() {
        return translateAnimationListener;
    }

    public void setTranslateAnimationListener(Animator.AnimatorListener translateAnimationListener) {
        this.translateAnimationListener = translateAnimationListener;
    }
}
